package net.helpfulwebservices.cogitologopedia.utility;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;


//classe di supporto
public class GUI {

	public static void messageBox(Context context,String title, String message, int icon){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setCancelable(true);
		builder.setIcon(icon);
		builder.setTitle(title);
		builder.setMessage(message);
		builder.setInverseBackgroundForced(true);
		builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		});
		AlertDialog alert = builder.create();
		alert.show();
	}

}
